package cn.edu.sdjzu.xg.eagle.entity;

import lombok.NoArgsConstructor;

@NoArgsConstructor
public class Teacher {

    private Long id;
    private String name;
    private String password;
    private Department department;

    public Teacher(Long id, String name, String password, Department department) {
        this(name, password, department);
        this.id = id;
    }

    public Teacher(String name, String password, Department department) {
        this.name = name;
        this.password = password;
        this.department = department;
    }

    public Long getId() { return id; }

    public String getName() { return name; }

    public String getPassword() { return password; }

    public Department getDepartment() { return department; }

    public void setId(Long id) { this.id = id; }

    public void setName(String name) { this.name = name; }

    public void setPassword(String password) { this.password = password; }

    public void setDepartment(Department department) { this.department = department; }

    @Override
    public String toString() {
        return "Teacher [id=" + id + ", name=" + name + ", password=" + password
                + ", department=" + department + "]";
    }
}
